<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ExternalContact extends Model
{
    use SoftDeletes;

    protected $table = 'external_contacts';

    protected $fillable = [
        'category',
        'project_source',
        'unit',
        'username',
        'mobile',
        'related_uid',
    ];

    const CATEGORY_SOURCE_CONTACT = 'source_contact';
    const CATEGORY_OTHER_COMPANY = 'other_company';

    const CATEGORY_MAP = [
        self::CATEGORY_SOURCE_CONTACT => '项目来源联系人',
        self::CATEGORY_OTHER_COMPANY => '其他公司联系人',
    ];

}

